/*
 * vivi/include/heap.h
 *
 * Based on bootldr/heap.h
 *
 */
#ifndef __HEAP_H__
#define __HEAP_H__

#include <types.h>

#define malloc(size)	mmalloc(size)
#define free(ptr)		mfree(ptr)


#define SZ_1M                           0x00100000
#define HEAP_SIZE		SZ_1M
#define HEAP_BASE (0x33e00000 - 5*SZ_1M)

int heap_init(void);
void *mmalloc(unsigned long size);
void mfree(void *block);

#endif /* __HEAP_H__ */
